package org.smr.ministore.dao;


import org.apache.ibatis.annotations.Param;
import org.smr.ministore.entities.GoodsImg;
import org.apache.ibatis.annotations.Mapper;
import org.blade.dao.base.BaseMapper;
import org.blade.dao.base.PageQueryMapper;

import java.util.List;


/**
*
**/
@Mapper
public interface GoodsImgMapper extends BaseMapper<Long, GoodsImg>,PageQueryMapper<Long,GoodsImg> {

    /**
    * 逻辑删除
    * @param id
    *
    */
    int deleteByIdLogical(@Param("id")Long id);

    /**
     * 通过商品编号获取商品图片
     * @param goodsId
     * @return
     */
    List<GoodsImg> getGoodsImgByGoods(@Param("goodsId")Long goodsId);
}